package com.lm.lombok.example;

import lombok.SneakyThrows;

/**
 * @SneakyThrows 注解会自动将受检异常（Checked Exception）包装为运行时异常。
 */
public class SneakyThrowsExample {
    @SneakyThrows
    public void readFile() {
        throw new Exception("Checked Exception");
    }
}
